-- GENERATED SPELL FOR [Frigid Ghoul] --


function spell0_27534(pUnit, Event) --@Rot Armor,n/a--
pUnit:FullCastSpellOnTarget(50361,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27534', 10000, 1)
end

function Sorts_27534(pUnit, Event)
local choix_sorts_27534 = math.random(0, 0)
if choix_sorts_27534 == 0 then
pUnit:RegisterEvent('spell0_27534', 1, 1)
end
end

function mob27534_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27534', math.random(1500, 3000), 1)
end

function mob27534_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27534_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27534_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27534, 1, 'mob27534_Action')
RegisterUnitEvent(27534, 2, 'mob27534_Leave')
RegisterUnitEvent(27534, 3, 'mob27534_Kill')
RegisterUnitEvent(27534, 4, 'mob27534_Die')
